Windows 11 MDT Sysprep Failure 您所在的位置:网站首页 images/backup-before-win11-upgrade/2png Windows 11 MDT Sysprep Failure

Windows 11 MDT Sysprep Failure

2023-04-05 17:17| 来源: 网络整理| 查看: 265

When using an MDT Build and Capture Task Sequence (Standard Client Task Sequence), my Reference image creation fails with a sysprep error when using Windows 11 VLSC media.

The problem looks to be caused by a new UWP app included with Windows 11 for OneDrive:

Microsoft.OneDriveSync_21205.1003.3.0_neutral__8wekyb3d8bbwe

This is not present in any Windows 10 builds I have tested so looks to be a new feature introduced in Windows 11.

I have a script containing a suitable 'Remove-AppxPackage' command and this works on the appx but the app immediately reappears after a reboot during the deployment.

I can't see any related Provisioned Package (Get-AppxProvisionedPackage) to remove (which would hopefully prevent the appx from being re-provisioned) so the only workaround I have at the moment is to add the removal script (to remove the OneDrive appx) immediately before the sysprep task at the end of the Task Sequence.

Errors in the 'C:\Windows\System32\sysprep\Panther\setupact.log' are:

2021-10-14 13:37:33, Error SYSPRP Package Microsoft.OneDriveSync_21180.905.7.0_neutral__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image. 2021-10-14 13:37:33, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2. 2021-10-14 13:37:33, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2. 2021-10-14 13:37:33, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2 2021-10-14 13:37:33, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2 2021-10-14 13:37:33, Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2 2021-10-14 13:37:33, Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2 2021-10-14 13:37:33, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2

It looks to me like this is not intended/expected behaviour so perhaps a bug with the way the OneDrive appx is installed (i.e. 'Per User' as opposed to 'Per Device')?



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有